package com.chinaisafe.demo.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import com.chinaisafe.demo.vo.response.DemoTableRespVO;
import com.chinaisafe.demo.entity.DemoTable;

/**
 * DemoTableMapper
 * Description：测试类Mapper接口
 *
 * @author JiangZhaoYong
 * @date 2024-07-15 13:00:14
 */
@Mapper
public interface DemoTableMapper extends BaseMapper<DemoTable> {
    /**
     * 根据条件获取测试类分页列表
     * @param page 分页对象
     * @param queryWrapper 筛选参数
     * @return IPage<DemoTableRespVO> 查询结果
     * @author JiangZhaoYong
     * @date 2024-07-15 13:00:14
     */
    IPage<DemoTableRespVO> getPageList(Page<DemoTable> page, @Param(Constants.WRAPPER) QueryWrapper<DemoTable> queryWrapper);
}
